package com.github.chirspan.xaas.rbac.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.chirspan.xaas.mybatis.model.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * *******description*******
 * <p>
 * *************************
 *
 * @author chenpan
 * @date 2020/6/24 10:41
 */
@TableName(value = "xaas_rbac_role_app")
@Data
@NoArgsConstructor
public class RbacRoleApp extends BaseModel {

    @ApiModelProperty("角色id")
    @TableField(value = "role_id")
    private String roleId;

    @ApiModelProperty("应用ID")
    @TableField(value = "app_id")
    private String appId;

    public RbacRoleApp(String roleId, String appId) {
        this.roleId = roleId;
        this.appId = appId;
    }
}
